namespace 类存储数据_跨UI跨线程使用
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }



        private void Form1_Load(object sender, EventArgs e)
        {
            label1.Text = Class1.Value;
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            Class1.Value = textBox1.Text;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Form2 form2 = new Form2();
            this.Close();
            form2.ShowDialog();
            

        }
    }
}
